ec4ea3dcb149fd755dc8f57e68a1bf29b26ab223,core/src/main/java/hudson/tasks/junit/CaseResult.java,CaseResult,getSafeName,#,235
Before Change
buf.setCharAt(i,'_');
}
Collection<CaseResult> siblings = (classResult ==null ? Collections.<CaseResult>emptyList(): classResult.getChildren());
return uniquifyName(siblings, buf.toString());
}
/**
After Change
* Gets the version of {@link #getName()} that's URL-safe.
*/
public @Override synchronized String getSafeName() {
if (safeName != null) {
return safeName;
}
StringBuilder buf = new StringBuilder(testName);
for( int i=0; i<buf.length(); i++ ) {
char ch = buf.charAt(i);
if(!Character.isJavaIdentifierPart(ch))
buf.setCharAt(i,'_');
}
Collection<CaseResult> siblings = (classResult ==null ? Collections.<CaseResult>emptyList(): classResult.getChildren());
return safeName = uniquifyName(siblings, buf.toString());
}
/**